package com.saurshaz.test.roo.trading.services;

import java.util.List;

import org.springframework.stereotype.Service;

import com.saurshaz.test.roo.trading.SecurityType;

@Service(value = "securityTypeService")
public class SecurityTypeServiceImpl implements SecurityTypeService {

	@Override
	public List<SecurityType> getAllSecurityTypes() {
		return SecurityType.findAllSecurityTypes();
	}

	@Override
	public SecurityType createSecurityType(SecurityType securityType) {
		securityType.persist();
		return securityType;
	}
}
